﻿<?php //Seyret Component v.0.3//
/**
* @package Seyret
* @version 0.3
* @copyright Copyright (C) 2008 Mustafa DINDAR. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Seyret Video Component is a free software.
* See seyrettos.html for license notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

echo $this->toolbar;
echo $this->modtoolbar;


echo $this->loginmoduleoutput;

$user =& JFactory::getUser();


$licensemessage = ""; 
if ($user->id > 0) { 
	$userstatus = "online"; 
		if ($this->liccontrol != "noerror") $licensemessage = "licerror"; 

} else {$userstatus = "offline"; }


?>
<div id="userstatus" style="display:none;"><?php echo $userstatus;?></div>
<div id="userid" style="display:none;"><?php echo $user->id;?></div>
<div id="username" style="display:none;"><?php echo $user->username;?></div>
<div id="name" style="display:none;"><?php echo $user->name;?></div>
<div id="licensemessage" style="display:none;"><?php echo $licensemessage;?></div>
<div id="publishownvp" style="display:none;"><?php echo $this->registry->getValue( 'permission.administration.canpublishownvideos');?></div>
<div id="makefaturedownvp" style="display:none;"><?php echo $this->registry->getValue( 'permission.administration.canmakefeatured');?></div>
<div id="definedisablevp" style="display:none;"><?php echo $this->registry->getValue( 'permission.administration.candisableembed');?></div>
<div id="makedownloadablevp" style="display:none;"><?php echo $this->registry->getValue( 'permission.administration.canmakevideodownloadable');?></div>
<div id="publishperiodvp" style="display:none;"><?php echo $this->registry->getValue( 'permission.administration.candefinepublishperiod');?></div>
<div id="selectchannelvp" style="display:none;"><?php echo $this->registry->getValue( 'permission.administration.canselectchannels');?></div>



<?php


if ($userstatus == "online") { 
?>
<div id="categoryxml" style="display:none;">
	<categories>
	
<?php

foreach ($this->categorylist as $category) {
?>
		<catdata>
			<data><?php echo $category->nestedid; ?></data>
			<cattitle><?php echo $category->categoryname; ?></cattitle>
		</catdata>
<?php
}
?>
	</categories>
</div>

<div id="channelxml" style="display:none;">
	<channels>
	
<?php





foreach ($this->channellist as $channel) {
?>
		<channelldata>
			<data><?php echo $channel->id; ?></data>
			<chtitle><?php echo $channel->channeltitle; ?></chtitle>
		</channelldata>
<?php
}
?>
	</channels>
</div>

<?php
} 


?>
